-- GENERATED SPELL FOR [Ahunite Hailstone] --


function spell0_25755(pUnit, Event) --@Chilling Aura,Self--
pUnit:FullCastSpellOnTarget(46542,pUnit)
pUnit:RegisterEvent('Sorts_25755', 0, 1)
end

function spell1_25755(pUnit, Event) --@Chilling Aura,Self--
pUnit:FullCastSpellOnTarget(46885,pUnit)
pUnit:RegisterEvent('Sorts_25755', 0, 1)
end

function spell2_25755(pUnit, Event) --@Pulverize,Self--
pUnit:FullCastSpellOnTarget(2676,pUnit)
pUnit:RegisterEvent('Sorts_25755', 2000, 1)
end

function Sorts_25755(pUnit, Event)
local choix_sorts_25755 = math.random(0, 2)
if choix_sorts_25755 == 0 then
pUnit:RegisterEvent('spell0_25755', 1, 1)
end
if choix_sorts_25755 == 1 then
pUnit:RegisterEvent('spell1_25755', 1, 1)
end
if choix_sorts_25755 == 2 then
pUnit:RegisterEvent('spell2_25755', 1, 1)
end
end

function mob25755_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25755', math.random(1500, 3000), 1)
end

function mob25755_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25755_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25755_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25755, 1, 'mob25755_Action')
RegisterUnitEvent(25755, 2, 'mob25755_Leave')
RegisterUnitEvent(25755, 3, 'mob25755_Kill')
RegisterUnitEvent(25755, 4, 'mob25755_Die')
